package com.atguigu.common;


public enum BizCodeEnume {

    VALID_EXCEPTION(10001, "参数格式校验失败"),
    UNKNOW_EXCEPTION(10000, "系统未知异常"),
    SMS_CODE_EXCEPTION(10002, "验证码回去频率太高"),
    PRODUCT_UP_EXCEPTION(11000, "商品上架异常"),
    USER_EXIST_EXCEPTION(15001, "用户已存在"),
    PHONE_EXIST_EXCEPTION(15002, "手机已存在"),
    USER_PHONE_EXCEPTION(15003, "用户名或者密码错误");


    private Integer code;

    private String meg;

    BizCodeEnume(Integer code, String meg) {
        this.code = code;
        this.meg = meg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMeg() {
        return meg;
    }
}
